<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>任务管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/proms/taskWorkflow/taskWorkflow_list.js"></script>

  </head>
  
  <body class="easyui-layout">
	<div data-options="region:'west',split:true" title="项目指标" style="width:225px;">
		<ul id="pi_tree" class="easyui-tree"></ul>
	</div>
	<div data-options="region:'center'">
		<!-- DataGrid -->
	    <table id="dg" class="easyui-datagrid" title="任务待办列表" style="width: auto; height: auto;"
	    	data-options="url:'taskWorkflow/todoList',
	    			fit:true,
	    			singleSelect:true,
	    			rownumbers:true,
	    			toolbar:'#tb',
	    			pagination:true">
			<thead data-options="frozen:true">
	    		<tr>
	    			<th data-options="field:'id'">ID</th>
	    			<th data-options="field:'instance_id', hidden:true">INSTANCE_ID</th>
	    			<th data-options="field:'dbid_', hidden:true">dbid_</th>
	    			<!-- <th data-options="field:'name', width:150">任务名称</th> -->
	    			<th data-options="field:'name', width:200">任务主题</th>
	    			<th data-options="field:'remark', width:300">任务描述</th>
	    		</tr>
	    	</thead>	    			
	    	<thead>
	    		<tr>
	    			<th data-options="field:'plan_amount', align:'center', width:100, formatter:formateAmount">预算金额</th>
	    			<th data-options="field:'start_time', align:'center', width:160, formatter:formatTaskWfDate">任务计划时间段</th>
	    			<!-- <th data-options="field:'status', width:80, formatter:formatTaskStatus">状态</th> -->
	    			<th data-options="field:'wf_status',  align:'center', width:100, formatter:formatWfStatus">流程状态</th>
	    			<th data-options="field:'create_',  align:'center', width:125">任务到达时间</th>
	    			<th data-options="field:'create_user_name', align:'center', width:80">创建人</th>
	    			<th data-options="field:'create_time',  align:'center', width:125">创建时间</th>
	    		</tr>
	    	</thead>
	    </table>
	    
	    <!-- toolbar -->
	    <div id="tb" style="padding: 5px; height: auto;">
	    	<!-- search -->
	    	<div style="border-bottom: 1px solid #95B8E7;">
	    		<table>
	    			<tr>
	    				<td>任务主题：<input class="easyui-validatebox" id="name" name="name" style="width: 100px;" /></td>
	    				<td></td>
	    				<td>任务描述：<input class="easyui-validatebox" id="remark" name="remark" style="width: 150px;" /></td>
	    				<td></td>
	    				<td><a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch();">查询</a></td>
	    				<td><a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-reload" onclick="reSearch();">重置</a></td>
	    			</tr>
	    		</table>
	    	</div>
	    	<!-- opreate -->
	    	<div style="margin-bottom: 5px; text-align: right;">
	    		<%-- <%@include file="/WEB-INF/views/common/operate.jsp" %> --%>
	    		<!-- <a href="javascript:void(0);" id="detail" class="easyui-linkbutton" title="查看" iconCls="icon-detail" plain="true">查看</a> -->
	    		<a href="javascript:void(0);" id="todo" class="easyui-linkbutton" title="添加" iconCls="icon-edit" plain="todo">办理</a>
	    		<!-- <a href="javascript:void(0);" id="edit" class="easyui-linkbutton" title="修改" iconCls="icon-edit" plain="true">修改</a>
	    		<a href="javascript:void(0);" id="move" class="easyui-linkbutton" title="迁移" iconCls="icon-edit" plain="true">迁移</a>
	    		<a href="javascript:void(0);" id="remove" class="easyui-linkbutton" title="删除" iconCls="icon-remove" plain="true">删除</a> -->
	    	</div>
	    </div>
	    
	    <!-- add/edit window -->
	    <div id="win" class="easyui-window"
	    	 data-options="modal:true,
	    	 				closed:true,
	    	 				maximizable:true,
	    	 				minimizable:false,
	    	 				collapsible:false,
	    	 				iconCls:'icon-save',
	    	 				draggable:true">
	    	 <iframe id="contentFrame" src="" width=100% height=99% marginwidth=0 framespacing=0 marginheight=0 frameborder=no scrolling=no></iframe>
	    </div>
	</div>
  </body>
</html>
